package com.demo;

import org.apache.log4j.Logger;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.amqp.rabbit.annotation.EnableRabbit;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.ImportResource;

@SpringBootApplication(/*exclude = {DataSourceAutoConfiguration.class}*/)
@ImportResource({"classpath:config/spring-dubbo.xml"})
@MapperScan("com.demo.resource")
@ComponentScan({"com.demo.config","com.demo.component","com.demo.controller"})
@EnableRabbit//启动监听
public class AppServer {

	private static Logger logger = Logger.getLogger(AppServer.class);

	public static void main(String[] args) {
		SpringApplication.run(AppServer.class, args);
		logger.info("SpringBoot Start Success");
	}

}
